package com.shen.show.render

import android.opengl.GLES20.GL_VERTEX_SHADER
import android.opengl.GLES20.glCreateShader
import android.opengl.GLSurfaceView
import android.util.Log
import com.shen.show.NativeLib
import javax.microedition.khronos.egl.EGLConfig
import javax.microedition.khronos.opengles.GL10

class FFRender:GLSurfaceView.Renderer {
    private  val TAG = "ffRender"
    override fun onSurfaceCreated(gl: GL10?, config: EGLConfig?) {
        Log.e(TAG,"onSurfaceCreated")
//         glCreateShader(GL_VERTEX_SHADER);
       NativeLib.onSurfaceCreated()
    }

    override fun onSurfaceChanged(gl: GL10?, width: Int, height: Int) {
        Log.e(TAG,"onSurfaceChanged")
        NativeLib.onSurfaceChanged(width,height)
    }

    override fun onDrawFrame(gl: GL10?) {
        Log.e(TAG,"onDrawFrame")
        NativeLib.onDrawFrame()
    }
}